import { drag } from '@web-utils/core'

function bindDrag(el) {
  const dialogHeaderEl = el.querySelector('.chat-toolbar')
  if (dialogHeaderEl) {
    drag(el, dialogHeaderEl)
  }
}

export default {
  bind: el => bindDrag(el),
  update: el => bindDrag(el)
}
